<html>
<head>
	<title>Redirection...</title>
</head>
<body>
	<?php
    // Connexion à la base SQL
    $mysqli = new mysqli('localhost', 'root', 'root', 'forum');
	?>
	<?php
	// Supprimer un sujet
	// On récupere l'id du sujet
	if (isset($_GET['message']))
	{
		$id_message = $_GET['message'];
		// Suppression
		$requete = 'DELETE FROM message WHERE  id_message = ' . $id_message . ';';
		$mysqli->query($requete);
        $mysqli->close();
	}
	?>
	<script type="text/JavaScript">
		history.go(-1);
	</script>
</body>
</html>